package com.ynu.appuser.domain.physical;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Sleep implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String deviceType;

    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date timeBegin;

    private Date timeEnd;

    private Double deepSleep;

    private Double lightSleep;

    private Double awakeTime;

    private Double totalSleep;

    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getTimeBegin() {
        return timeBegin;
    }

    public void setTimeBegin(Date timeBegin) {
        this.timeBegin = timeBegin;
    }

    public Date getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(Date timeEnd) {
        this.timeEnd = timeEnd;
    }

    public Double getDeepSleep() {
        return deepSleep;
    }

    public void setDeepSleep(Double deepSleep) {
        this.deepSleep = deepSleep;
    }

    public Double getLightSleep() {
        return lightSleep;
    }

    public void setLightSleep(Double lightSleep) {
        this.lightSleep = lightSleep;
    }

    public Double getAwakeTime() {
        return awakeTime;
    }

    public void setAwakeTime(Double awakeTime) {
        this.awakeTime = awakeTime;
    }

    public Double getTotalSleep() {
        return totalSleep;
    }

    public void setTotalSleep(Double totalSleep) {
        this.totalSleep = totalSleep;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
